#include "HY1C_out.h"

#include "HY1C_OCT_L2A.h"
#include <stdio.h>

int main()
{
/*
    char *param1="";
    // char *param2="ifile=/home/oceanoptics/Desktop/MYD021KM.A2015022.1030.006.2015023155921.hdf";
    char param2[256];
    char *param3="l2prod=nLw_412 nLw_443 nLw_490 nLw_520 nLw_565 nLw_670 nLw_750 nLw_865 Rrs_412 Rrs_443 Rrs_490 Rrs_520 Rrs_565 Rrs_670 Rrs_750 Rrs_865 Lt_412 Lt_443 Lt_490 Lt_520 Lt_565 Lt_670 Lt_750 Lt_865 La_412 La_443 La_490 La_520 La_565 La_670 La_750 La_865 Lr_412 Lr_443 Lr_490 Lr_520 Lr_565 Lr_670 Lr_750 Lr_865 epsilon glint_coef aot_865 solz sola senz sena";
    char *param4="geofile=MYD03.A2015022.1030.006.2015023154125.hdf";
    // char param5="ofile=/home/oceanoptics/Desktop/test2.L2";
    char param5[256];
*/


	//char *input = "/home/eric/seadas64/PRO_MAIN/H1BCLR130612005432195.L1B.HDF";
	//char *input = "/home/eric/seadas64/PRO_MAIN/H1C_TEST_OCT_L1B_20190101T010000_20190101T010500_00103_10.h5";
char *input = "/home/eric/seadas64/PRO_MAIN/1B/H1C_TEST_OCT_L1B_20190101T010000_20190101T010500_00103_10_400_0_400_1664.h5";
	char *output = "/home/eric/seadas64/PRO_MAIN/H1C_TEST_OCT_L2A_20190101T010000_20190101T010500_00103_10.h5";
	char *config = "/home/eric/seadas64/PRO_MAIN/config/L2A_config_OUC";

printf("###############  %s\n", input);

	HY1C_OCT_L2A(input, output, config);
	return 0;
}
